package com.flyduck.mall.ums.api;

import com.flyduck.mall.ums.api.vo.RemoteAddressRespVO;
import com.flyduck.mall.ums.api.vo.RemoteUserRespVO;
import com.flyduck.mall.ums.api.vo.RemoteUserSaveReqVO;
import com.flyduck.mall.ums.api.vo.RemoteUserUpdateReqVO;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * AppUserFeignClient
 * </p>
 *
 * @author flyduck
 * @since 2024-07-10
 */
public interface RemoteUserService {
    RemoteUserRespVO getUserByUsername(@RequestParam("username") String username);

    RemoteUserRespVO getUserById(@PathVariable("id") Long id);

    void saveUser(@RequestBody RemoteUserSaveReqVO remoteUserSaveReqVO);

    void updateUser(@RequestBody RemoteUserUpdateReqVO remoteUserUpdateReqVO);
}
